import React from 'react';
import {
    NavLink,
    Outlet
} from "react-router-dom";
function Index(props) {
    return (
        <div>
            <nav>
                <NavLink to={"/"}>首页</NavLink>
                <NavLink to={"/newsList"}>新闻列表</NavLink>
                <NavLink to={"/goodsList"}>商品列表</NavLink>
                <NavLink to={"/my"}>个人中心</NavLink>
            </nav>
            <Outlet/>
        </div>
    );
}

export default Index;